Repository navigation
feat(incidents): move the Incidents UI onto the shared console look - #5552
shepherdjerred wants to merge 2 commits into
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
@codex review Automated re-review request for |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
1c1a0e6 to
7221bc7
Compare
|
@codex review Automated re-review request for |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why The Incidents pages (mounted in Hub) predate the new vocabulary: bordered cards, uppercase-style severity pills, a local timeline, native dialogs and hand-built fields. What - HeaderBar with NavTabs for Open/Maintenance/History, FigureStrip, Section, FilterBar and one .ui-table per list (stacks on a phone). - StatusGlyph (glyph + word) replaces the .inc-sev pills; Chip for systems and kinds; DescriptionList for incident facts; shared Timeline for events. - Banner for notices and the duplicate-declaration prompt; State for loading/empty/error; shared Dialog, Field, Fieldset, Checkbox, RadioGroup, Textarea and FormActions for declare, update, resolve and hand-off. - Home block is one table with group rows. incidents.css shrinks from 723 to about 80 layout-only lines; the conformance allowlist (37 bare-element selectors) is now empty. - Hub e2e incidents spec: class selectors migrated to roles one for one. Verification - bunx turbo run typecheck lint test --filter=@shepherdjerred/incidents: pass - bun run test:e2e in packages/alert-dashboard: 161 passed - bunx lefthook run pre-commit: pass - Not run: extended tier, e2e:affected, live acceptance Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Why A tall neighbour stretched a grid row and pushed a short value to the bottom of its .ui-dl-item. What .ui-dl-item uses align-content: start and the grid layout align-items: start, in the existing ui.components layer. Verification Incident detail screenshot with a long Suspect URL; console-ui build, typecheck, test (vocabulary and conformance) and lint pass. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7221bc7 to
5e87785
Compare
Why
The Incidents pages (mounted in Hub) predate the new console vocabulary: bordered cards, severity pills, a local timeline, native dialogs and hand-built fields.
What
.ui-tableper list..inc-sevpills; Chip for systems and kinds; DescriptionList for incident facts; the shared Timeline for events.DescriptionList(console-ui): items align to the start, so a tall neighbour no longer pushes a value to the bottom of its cell.incidents.cssgoes from 723 lines to about 80 layout-only lines; the conformance allowlist (37 bare-element selectors) is now empty.Demo
Before | After
List, light:
List, dark:
Detail, light:
Detail facts with a long Suspect URL, after the shared
DescriptionListfix (items align to the start instead of stretching; "Components" and "Creator" now sit under their labels):Declare, light:
Action dialog, dark:
Hub Home block, light:
Phone (375px), list and detail:
Verification
bunx turbo run typecheck lint test --filter=@shepherdjerred/incidents: passbun run test:e2ein packages/alert-dashboard: 161 passed (incidents spec: 7,expect(count 52 before and after)bunx turbo run build typecheck test lintfor incidents and console-ui (includes the vocabulary and conformance tests): passbunx lefthook run pre-commit(includes jscpd): passbun run verify:extended -- --filter='...[origin/main...HEAD]': exit 0bun run e2e:affected, live acceptance after deploy